﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2103A.Shopping.TEntityFrame.DTO
{
    /// <summary>
    /// 创建订单需要的DTO
    /// </summary>
    public class OrderInputDto
    {
        //前台传入到后台的订单主表信息
        public Guid MemberId { get; set; }
        public decimal OrderAmount { get; set; }
        public decimal RateAmount { get; set; }
        public string RecivedAddress { get; set; }
        public string RecivedName { get; set; }
        public string RecivedPhone { get; set; }
        public string? Remark { get; set; }

        //前台传入到后台的订单商品信息
        public List<OrderDetailInputDto> Details { get; set; }
    }

    public class OrderDetailInputDto
    {
        public int Number { get; set; }
        public decimal Price { get; set; }
        public Guid SKUId { get; set; }
        public string? SKUImage { get; set; }
        public string? SKUName { get; set; }
    }
}
